package com.itheima.service;

import com.itheima.domain.User;

import java.util.Map;

public interface UserService {
    User findUserByName(String username);

    User userLogin(String username, String password);

    User findUserById(int userId);

    String userRegister(User user);

    String userUpdate(User user);

    boolean updateAvatar(Integer userId, String avatarPath);

    String selectRealNameById(int userId);

    int setUserAddress(String address, int userId);

    int setUserPhone(String phone, int userId);

    String getUserAvatar(int userId);

    Map<String, Integer> getUserProductStats(Integer userId);
}
